import Vue from 'vue'
import App from './App'
import request from './static/utils/request.js'
import router from './static/router.js'
import { RouterMount } from 'uni-simple-router'
import ourLoading from '@/components/our-loading/our-loading.vue'
import {getColorCofig} from './static/utils/ahth.js'
Vue.component('ourLoading', ourLoading)
Vue.config.productionTip = false
App.mpType = 'app'
console.log(request)
Vue.prototype.request = request.request
Vue.mixin({
	data(){
		return{
			newColor: getColorCofig()
		}
	}
})
const app = new Vue({
    ...App,
	router
})
// #ifdef H5
	RouterMount(app,'#app');
// #endif

// #ifndef H5
	app.$mount(); //为了兼容小程序及app端必须这样写才有效果
// #endif
